# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo1224
# Description:
# Author:       yzl
# Date:         2019-02-08
#-------------------------------------------------------------------------------

import os
import subprocess

# 路径分隔符
print(os.sep)

# 环境变量分隔符
print(os.pathsep)

# 系统名称
print(os.name)

# 环境变量的值
print(os.environ)

# 获取path
print(os.environ['PATH'])

# 执行一条外部命令 window dir open a.txt
os.system('ls -al')
os.system('open /applications/phpstorm.app')


